//
//  PlayerHelpers.h
//  YinYueBoFang_Forever
//
//  Created by lanou3g on 15/11/5.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol PlayerHelpersDelegate <NSObject>

//这个代理的方法作用是告诉外界当前音乐播放的时间
-(void)musicPlayTime:(float)time;

//当前音乐结束播放的代理方法
-(void)currentMusicDidFinish;

@end


@interface PlayerHelpers : NSObject

@property(nonatomic,assign)id<PlayerHelpersDelegate>delegate;
@property(nonatomic,assign)NSInteger playStatus;

+(PlayerHelpers *)defaultPlayers;

-(void)playWithURL:(NSString *)urlString;

-(void)play;

-(void)pause;

-(void)stop;

-(BOOL)isPlaying;

-(void)seekToTime:(float)time;

-(BOOL)isCurrentMusicWithUrlString:(NSString *)urlString;






















@end
